<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/

Route::get('/' , 'IndexController@index');
Route::get('auth/register' , 'Auth\AuthController@getRegister' );
Route::post('auth/register' , ['middleware'=>'App\Http\Middleware\EmailMiddleware' , 'uses'=>'Auth\AuthController@postRegister']);
Route::get('/home' , function(){
	return redirect('/');
});
Route::get('auth/login' , 'Auth\AuthController@getLogin');
Route::post('auth/login' , 'Auth\AuthController@postLogin');
Route::get('auth/logout' , 'Auth\AuthController@getLogout');

Route::get('jie' , 'ProController@jie');
Route::post('jie' , 'ProController@jiePost');
Route::get('myzd' , 'ProController@myzd');
Route::get('mytz' , 'ProController@mytz');
Route::get('mysy' , 'ProController@mysy');

/*审核表单列表*/
Route::get('prolist' , 'CheckController@prolist');

/*审核表单*/
Route::get('check/{pid}' , 'CheckController@check');
Route::post('check/{pid}' , 'CheckController@checkPost');

/*投资表单*/
Route::get('touzi/{pid}' , 'TouController@touzi');
Route::post('touzi/{pid}' , 'TouController@touziPost');

/*生成收益*/
Route::get('grow' , 'GrowController@run');

/*注册中间件*/
Route::get('test',['middleware'=>'App\Http\Middleware\EmailMiddleware' , function(){
	return 'test';
}]);
/*在线支付*/
Route::get('pay',function(){
	return view('pay');
});